Skip to content

docs: add safety warning to Array.from_buffers docstring#49799

Closed
avasis-ai wants to merge 1 commit intoapache:mainfrom
avasis-ai:fix-from-buffers-safety-docs
Closed

docs: add safety warning to Array.from_buffers docstring#49799
avasis-ai wants to merge 1 commit intoapache:mainfrom
avasis-ai:fix-from-buffers-safety-docs

Conversation

@avasis-ai
Copy link
Copy Markdown

Summary

Adds a .. warning:: directive to the Array.from_buffers docstring to explicitly inform callers that they are responsible for passing valid Arrow data matching the given type, and that passing invalid data may lead to crashes or undefined behavior.

This addresses the concern raised in the issue that users may not be aware of the safety implications of using this low-level API.

Closes #49717

@github-actions
Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@AlenkaF
Copy link
Copy Markdown
Member

AlenkaF commented Apr 22, 2026

Avasis.ai creates agents designed to open PRs in OS repositories. In order to save maintainers time I will close this.
In case I am wrong and the collaboration will not be us talking to an agent, feel free to re-open a PR and re-read the connected issue as I do not thing the agent fully captured what needs to be done.

@AlenkaF AlenkaF closed this Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Python] Array.from_buffers docs should mention safety issues

2 participants